package operation;

import book.Book;
import book.BookList;

public class DisplayOperation implements IOperation{
    public void work(BookList booklist){
        System.out.println("打印图书");
        int size = booklist.getUsedSize();
        for(int i = 0; i < size;i++){
            Book book = booklist.getPos(i);
            System.out.println(book);
        }
    }
}
